# 文件名：remove_newlines.py

input_file = "SA/TPU/top/systolic_array/testbench/int8_int32/m8n32k16/a_int8_m8n32k16_hex.txt"
output_file = "SA/TPU/top/systolic_array/testbench/int8_int32/m8n32k16/a_int8_m8n32k16.txt"

with open(input_file, "r", encoding="utf-8") as f:
    content = f.read().replace('\n', '')

with open(output_file, "w", encoding="utf-8") as f:
    f.write(content)

print("处理完成，已生成无换行新文件：", output_file)